//对象类型
// const Status = {
//   message: 0,
//   spa: 1,
//   daBaoJian: 2,
// };
//枚举类型,
enum Status16 {
  message = 1,
  spa,
  daBaoJian,
}
//枚举类型默认从0开始,给message设置默认值为1,就会从1开始
console.log(Status16.message, Status16.spa, Status16.daBaoJian);
console.log(Status16.message, Status16[1]);
function getServe16(status: any) {
  if (status === Status16.message) {
    return "message";
  } else if (status === Status16.spa) {
    return "SPA";
  } else if (status === Status16.daBaoJian) {
    return "dabaojian";
  }
}
// const result = getServe16(Status.spa);
const result = getServe16(1);
console.log(`我要${result}`);
